$(function() {
	$('ul.i-tab li:first').addClass ('active');
	$('ul.tab-content li:first').css ('display', 'block');
	$('ul.i-tab').delegate('li:not(.active)', 'click', function() {
		$(this).addClass('active').siblings().removeClass('active')
			.parents('.tabs').find('ul.tab-content li').hide()
			.eq($(this).index()).fadeIn('slow');
	})
});

function clickclear(thisfield, defaulttext) {
	if (thisfield.value == defaulttext) {
		thisfield.value = "";
		$("input.inp_txt").css("color", "#313131");
	}
}

function clickrecall(thisfield, defaulttext) {
	if (thisfield.value == "") {
		thisfield.value = defaulttext;
		$("input.inp_txt").css("color", "#a6a6a6");
	}
}

 $(document).ready(function () {		
	$(".ddsmoothmenu2 ul li").each(function(){
		$(this).hover(
			function(){
				$(this).css("position","relative");
			},
			function() {
				$(this).css("position","static");
			}
		);
	});
}); 

$(document).ready(function () {		
	ddsmoothmenu.init({
		mainmenuid: "smoothmenu1", 
		orientation: 'h', 
		classname: 'ddsmoothmenu', 
		contentsource: "markup"
	});

	ddsmoothmenu.init({
		mainmenuid: "smoothmenu2",
		orientation: 'h', 
		classname: 'ddsmoothmenu2',
		contentsource: "markup" 
	});
});


